package com.amos.muexamclient.sys.service.dto;


import com.alibaba.fastjson.JSONObject;
import com.amos.core.PageDTO;
import com.amos.muexamclient.sys.entity.SysDictTypeEntity;
import com.amos.muexamcore.core.MuEntity;
import com.amos.muexamcore.core.MuField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.service.dto
 * @ClassName SysDictTypeDTO
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-24 14:34:19
 * @Version 1.0
 **/
@MuEntity(table = "sys_dict_type", entity = SysDictTypeEntity.class)
@Data
public class SysDictTypeDTO extends PageDTO implements Serializable {

    private static final long serialVersionUID = 5369255789591254809L;
    @MuField(remark = "字典主键", type = "varchar", length = 32, column = "dict_id")
    private String dictId;

    @MuField(remark = "字典名称", type = "varchar", length = 100, column = "dict_name")
    private String dictName;

    @MuField(remark = "字典类型", type = "varchar", length = 100, column = "dict_type")
    private String dictType;

    @MuField(remark = "状态（0正常 1停用）", type = "char", length = 1, column = "status")
    private String status;

    @MuField(remark = "创建者", type = "varchar", length = 64, column = "create_by")
    private String createBy;

    @MuField(remark = "更新者", type = "varchar", length = 64, column = "update_by")
    private String updateBy;

    @MuField(remark = "更新时间", type = "datetime", column = "update_time")
    private Date updateTime;

    @MuField(remark = "备注", type = "varchar", length = 500, column = "remark")
    private String remark;

    private Date beginTime;
    private Date endTime;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
